<template>
<div>
  <h2>Test Router {{msg}}</h2>
  <!-- 显示子路由的内容 -->
  <router-view></router-view>
</div>
</template>

<script>
export default {
  name: 'TestRouter',
  data () {
    return {
      msg: '测试vue-router页面'
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->